请教PHP如何批量写入多条数据答:sql = "insert into myorder (pid,amount,ordernumber,time,uid,status) VALUES ";foreach ($ShoppingCart as $k => $v){$sql .= "(".$v['pid'].",".$v['amount'].",'$ordernumber','$time','$uid','$status'),";$sql = substr($sql, 0,strlen($sql)-1);$res = ...